﻿@model HelloMVC.Model.Issue
@using HelloMVC.Model

<div class = "content-body">
        <h2>@ViewBag.Title</h2>
        @Html.HiddenFor(m => m.ProjectId)
        <div class="field-group">
            @Html.LabelFor(m => m.Project)
            @Html.AutocompleteFor(m => m.Project, new {@class ="long-field" })
            @Html.ValidationMessageFor(m => m.Project)
        </div>
        <div class="field-group">
            @Html.LabelFor(m => m.Type)
            @Html.IconDropdownListFor(m => m.Type, new[] {
                new IconSelectListItem{Value = "bug", Text = "Bug", IconName = "bug"},
                new IconSelectListItem{Value = "task", Text = "Task", IconName = "task"}}, new { @class = "select" })
        </div>
        <div class="field-group">
            @Html.LabelFor(m => m.Summary)
            @Html.TextBoxFor(m => m.Summary, new { @class = "super-field" })
            @Html.ValidationMessageFor(m => m.Summary)
        </div>
        <div class="field-group">
            @Html.LabelFor(m => m.Priority)
            @Html.IconDropdownListFor(m => m.Priority, new[] { 
                new IconSelectListItem{Text = "Blocker", Value = "blocker" , IconName ="blocker"},
                new IconSelectListItem{Text = "Critical", Value = "critical" , IconName ="critical"},
                new IconSelectListItem{Text = "Major", Value = "major" , IconName ="major"},
                new IconSelectListItem{Text = "Minor", Value = "minor" , IconName ="minor"},
                new IconSelectListItem{Text = "Trivial", Value = "trivial" , IconName ="trivial"}}, new { @class="select"})
        </div>
        <div class="field-group">
            @Html.LabelFor(m => m.Component)
            @Html.AutocompleteFor(m => m.Component)
            @Html.ValidationMessageFor(m => m.Component)
        </div>
        <div class="field-group">
            @Html.LabelFor(m => m.Version)
            @Html.AutocompleteFor(m => m.Version)
            @Html.ValidationMessageFor(m => m.Version)
        </div>
        <div class="field-group">
            @Html.LabelFor(m => m.OriginalEstimate)
            @Html.TextBoxFor(m => m.OriginalEstimate)
            @Html.ValidationMessageFor(m => m.OriginalEstimate)
        </div>
        <div class="field-group">
            @Html.LabelFor(m => m.Environment)
            @Html.TextAreaFor(m => m.Environment, new { @class = "super-field" })
            @Html.ValidationMessageFor(m => m.Environment)
        </div>
        <div class="field-group">
            @Html.LabelFor(m => m.Description)
            @Html.TextAreaFor(m => m.Description, new { @class = "super-field" })
            @Html.ValidationMessageFor(m => m.Description)
        </div>
        <div class="field-group">
            @Html.LabelFor(m => m.InternalComplexity)
            @Html.DropDownListFor(m => m.InternalComplexity, new[] { 
                new SelectListItem{ Value = "-1", Text="None"},
                new SelectListItem{ Value = "Unknown", Text="Unknown"},
                new SelectListItem{ Value = "1", Text="1"},
                new SelectListItem{ Value = "2", Text="2"},
                new SelectListItem{ Value = "3", Text="3"},
                new SelectListItem{ Value = "4", Text="4"},
                new SelectListItem{ Value = "5", Text="5"}}, new { @class = "select"})
        </div>
        <div class="field-group">
            @Html.LabelFor(m => m.InternalPriority)
            @Html.DropDownListFor(m => m.InternalPriority, new[] {
                new SelectListItem{Value = "-1", Text = "None"},
                new SelectListItem{Value = "1", Text = "Highest"},
                new SelectListItem{Value = "2", Text = "High"},
                new SelectListItem{Value = "3", Text = "Medium"},
                new SelectListItem{Value = "4", Text = "Low"},
                new SelectListItem{Value = "5", Text = "Lowest"}}, new { @class = "select"})
        </div>
        <div class="field-group">
            @Html.LabelFor(m => m.RiskAssessment)
            @Html.DropDownListFor(m => m.RiskAssessment, new[] {
                new SelectListItem{Value = "-1", Text = "None"},
                new SelectListItem{Value = "high", Text = "High"},
                new SelectListItem{Value = "medium", Text = "Medium"},
                new SelectListItem{Value = "low", Text = "Low"}}, new {@class = "select" })
        </div>
        <div class="field-group">
            @Html.LabelFor(m => m.StoryPoints)
            @Html.TextBoxFor(m => m.StoryPoints)
            @Html.ValidationMessageFor(m => m.StoryPoints)
        </div>
        <div class="field-group">
            @Html.LabelFor(m => m.Theme)
            @Html.TextBoxFor(m => m.Theme)
            @Html.ValidationMessageFor(m => m.Theme)
        </div>
        <div class="field-group">
            @Html.LabelFor(m => m.SubTheme)
            @Html.TextBoxFor(m => m.SubTheme)
            @Html.ValidationMessageFor(m => m.SubTheme)
        </div>
</div>
